﻿/*
 * Created by SharpDevelop.
 * User: christophe
 * Date: 11/03/2011
 * Time: 20:02
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */
using System;
using System.Windows.Data;

namespace MetaVideoEditorEvolved.Converter
{
    /// <summary>
    /// Description of BooleanToFontWeightConverter.
    /// </summary>
    public class BooleanToFontWeightConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            var boolValue = (Boolean)value;
            if (boolValue)
            {
                return "Bold";
            }
            else
            {
                return "Normal";
            }
        }

        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
